<div class="container-fluid" ng-controller="DashboardController">
    <div class="header">
        <div class="row">
            <div class="col-lg-offset-1 col-md-offset-1 col-lg-8 col-md-8" style="height: 35px; line-height: 35px;">
                <span>您好&nbsp;{{lotteryAccountInfo.user_name}}，可用余额为:
                    <span style="font-weight: 700;color: yellow;">{{lotteryAccountInfo.balance|currency:"￥"}}</span>
                    【<a ui-sref="dashboard.accountdash.chargeapply({cg:1})">充值</a>】
                    【<a ui-sref="dashboard.accountdash.cashapply({cg:1})">提现</a>】
                </span>
            </div>
            <div class="col-lg-3 col-md-3">
            </div>
        </div>
        <div class="row header-bar">
            <div class="col-lg-offset-1 col-md-offset-1 col-lg-4 col-md-4">
                <img src="/img/bailehui.png" alt="" class="img-response" style="margin-left: 5%;">
            </div>
            <div class="col-lg-7 col-md-7">
                <div class="row">
                    <div class="col-lg-2 col-md-2 btn">
                        <span ><a ui-sref="dashboard.entrance"><img src="/img/dating.png" alt="购彩大厅">购彩大厅</a></span>
                    </div>
                    <div class="col-lg-2 col-md-2 btn" ng-show="lotteryType && isAtLotteryPage">
                        <span ><a ui-sref="dashboard.lottery_winning_num_list({type:lotteryType})"><img src="/img/kj.png" alt="开奖历史">开奖历史</a></span>
                    </div>
                    <div class="col-lg-2 col-md-2 btn">
                        <span ><a ui-sref="dashboard.accountdash.orderlistmain({cg:0})"><img src="/img/user-account.png" alt="账户中心">账户中心</a></span>
                    </div>
                    <div class="col-lg-2 col-md-2 btn">
                        <span><a ui-sref="dashboard.noticelist"><img src="/img/user-gg.png" alt="公告信息">公告信息</a></span>
                    </div>
                    <div class="col-lg-2 col-md-2 btn" ng-show="lotteryAccountInfo.user_type==1">
                        <span ><a ui-sref="dashboard.agentdash.createsubordinate"><img src="/img/user-daili.png" alt="代理管理">代理管理</a></span>
                    </div>
                    <div class="col-lg-2 col-md-2 btn">
                        <span><a ng-click="dashboard.logout()"><img src="/img/user-dch.png" alt="退出">退出</a></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="content" class="container" ui-view></div>
    <div id="feedback">
        <div id="feedback_btn"><a href="/robot/intelligent_robot.html?up={{dashboard.up}}&ak={{dashboard.accessToken}}&uid={{dashboard.userData.user_id}}&ct=USER" target="_blank">客服</a></div>
        <div id="returntop" style="color: #000000">
            <div style="margin-bottom: 2px;"><b>APP下载</b></div>
            <img src="/img/app_qrcode.png" title="下载APP" />
        </div>
        <script type="text/javascript">
            var getDiv=document.getElementById('returntop');
            getDiv.onclick=function(){
                window.scrollTo(0,0);
            }
        </script>
    </div>
    <div id="lotteryAwardTip" ng-if="dashboard.awardTipList && dashboard.awardTipList.length>0">
        <ul>
            <li  ng-repeat="awardTip in dashboard.awardTipList">{{awardTip.content}}</li>
        </ul>
    </div>
    <!--div id="warad_tip_icon" onmouseover="tipMouseOver('div#warad_tip_icon','lotteryAwardTip','lotteryAwardTip_hover')" onmouseout="">
        <img src="/img/tz.png" alt="开奖播报" style="max-width: 100%;max-height: 100%">
    </div>
    <div id="feedback_icon" onmouseover="" onmouseout="">
        <img src="/img/kf.png" alt="客服与APP下载" style="max-width: 100%;max-height: 100%">
    </div -->
</div>
<div class="login_qrcode">
</div>
<script type="application/javascript">
    //Make the DIV element draggagle:
    function dragElement(elmnt) {
        var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
        if (document.getElementById(elmnt.id + "header")) {
            /* if present, the header is where you move the DIV from:*/
            document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
        } else {
            /* otherwise, move the DIV from anywhere inside the DIV:*/
            elmnt.onmousedown = dragMouseDown;
        }

        function dragMouseDown(e) {
            e = e || window.event;
            // get the mouse cursor position at startup:
            pos3 = e.clientX;
            pos4 = e.clientY;
            document.onmouseup = closeDragElement;
            // call a function whenever the cursor moves:
            document.onmousemove = elementDrag;
        }

        function elementDrag(e) {
            e = e || window.event;
            // calculate the new cursor position:
            pos1 = pos3 - e.clientX;
            pos2 = pos4 - e.clientY;
            pos3 = e.clientX;
            pos4 = e.clientY;
            // set the element's new position:
            elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
            elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
        }

        function closeDragElement() {
            /* stop moving when mouse button is released:*/
            document.onmouseup = null;
            document.onmousemove = null;
        }
    }

//    dragElement(document.getElementById(("warad_tip_icon")));
//    dragElement(document.getElementById(("feedback_icon")));

</script>